package com.cfets.annualAssessment.base;


import com.cfets.annualAssessment.entity.UserSession;

/**
 * Created by henry on 4/9/14.
 */
public class UserSessionHolder {

	private static ThreadLocal<UserSession> threadLocal = new ThreadLocal<UserSession>();

	public static void put(UserSession userSession) {
		threadLocal.set(userSession);
	}

	public static UserSession get() {
//		return threadLocal.get();//线上运行代码时打开
		UserSession userSession=new UserSession();
//		userSession.setPeopleId(81);
		userSession.setOpenId("o7oNct-PMrk9VSblza1VLVoFUu_U");
		userSession.setK("k");
		userSession.setWeChatName("alibis");
		userSession.setUserId(52L);
		return userSession;
	}
}
